package com.kokomi.simple_model;


import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class Consumer2 {

    @RabbitListener(queues = "simple_model")
    public void receive(String msg) {
        System.out.println("消费者2收到消息：" + msg);
    }

}
